<style scoped>

</style>

<template>
  <div>
      <h2>下面是单据界面:</h2>
      <component :is="currView"></component>
  </div>
</template>
<script>

import StampRequestBill from './stamp-request-bill';
import util from './util/index';
import Vue from 'vue';

export default {
  data(){
      return {
          currView : null,
      }
  },
  props : {
      id : {
          type : String
      }
  },    
  mounted(){
      var that = this;
       util.wrap(StampRequestBill,this.id, function(comp){
            that.currView = comp;
      });
      console.log(util);
      console.log(StampRequestBill);
  }
}
</script>
